package com.mega32k.mevila.tab;

import com.mega32k.mevila.item.other.MevilaDust;
import com.mega32k.mevila.item.sword.MevilaSwordItem;
import com.mega32k.mevila.util.ItemInit;
import net.minecraft.block.ComposterBlock;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.registries.ObjectHolder;

public class MevilaMainTab extends ItemGroup {
    public static final ItemGroup mevilaMainTab = (ItemGroup) new MevilaMainTab();
    public MevilaMainTab() {
        super("MevilaItemGroup");
    }


    @Override
    public ItemStack createIcon() {
        return new ItemStack(ItemInit.MEVILA_DUST_REGISTRY_OBJECT.get());
    }

    @OnlyIn(Dist.CLIENT)
        public ITextComponent getGroupName() {
            return new StringTextComponent(I18n.format("tab.mevila.mevilaMain"));
        }
}
